<?php
class ORMv1myorderpackage extends ORMBase {
  public function __construct() {
    parent::__construct('v1myorderpackage');
  }

  public function __toEpObject($myManager, $epObject, $object) {
    $epObject->trackId = isset($object->trackId) ? $object->trackId : '';
    $epObject->name = isset($object->name) ? $object->name : '';
    $epObject->price = isset($object->price) ? $object->price : 0;
    $epObject->hours = isset($object->hours) ? $object->hours : 0;
    $epObject->persons = isset($object->persons) ? $object->persons : 0;
    $epObject->makeup = isset($object->makeup) ? $object->makeup : '';
    $epObject->original = isset($object->original) ? $object->original : 0;
    return $epObject;
  }

  public function __toObject($myManager, $epObject, $object) {
    $object->id = $epObject->oid;
    $object->trackId = $epObject->trackId;
    $object->name = $epObject->name;
    $object->price = $epObject->price;
    $object->hours = $epObject->hours;
    $object->persons = $epObject->persons;
    $object->makeup = $epObject->makeup;
    $object->original = $epObject->original;
    return $object;
  }
}
?>
